package com.qf.shiro2204.filter;

import org.springframework.stereotype.Component;

import javax.servlet.*;
import java.io.IOException;

/**
 * 自定义过滤器
 * 需求：把自定的filter的位置放在尽可能靠前的位置
 */
@Component
public class MyFilter implements Filter {

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("==========MyFilter===========");
        // 放行请求
        chain.doFilter(request,response);
    }


}
